import React, { Component } from 'react';
import {store} from '../../../store';

class Gwc extends Component {
    handleAdd(){
        //触发action
        store.dispatch( { type:'ADD_COUNT',payload:1 } )
    }
    render() {
        return (
            <div className='gwc'>
                Gwc
                <button onClick={this.handleAdd}>加1</button>
            </div>
        );
    }
}

export default Gwc;